define(['text!login/register.html'],
    function(viewTemplate) {
        return Piece.View.extend({
            id: 'login_text',
            events: {
                "click .evt_register": "doRegister"
            },
            render: function() {
                $(this.el).html(viewTemplate);

                Piece.View.prototype.render.call(this);
                return this;
            },
            onShow: function() {
                //write your business logic here :)

        
            },
            doRegister:function(){
                alert("注册成功!");
                this.container.navigateForResult('/login/menu', {
                    trigger: true
                }, 'login/logined', this.onGotResult);
            }
        }); //view define

    });